package cn.rubbit;

import cn.rubbit.entity.Project;
import cn.rubbit.generate.ProjectGenerate;
import cn.rubbit.generate.TableGenerate;
import cn.rubbit.load.Resource;

public class GenerateMain {
	public static void main(String[] args) throws Exception {
		Project project = Resource.newInstance().GenerateProject();
		String path = "D:\\test\\";
		project.setPath(path);
	//	project.setTables("user");
		ApplicationContext.set(ApplicationContext.PJ_OBJECT, project);
		ProjectGenerate.generate();
		TableGenerate.gernateEntity();
		// PlugManager pm=new PlugManager();
		// pm.load();
	}
}
